<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js比较与逻辑运算符</title>
</head>
<body>
	<script type="text/javascript">
		/**
		 *
		 *	<  小于 
			>  大于
			==  等于 1 == ‘1’ 
			===  绝对等于（值和类型均相等）
			!=  不等于
			&&  and   1) true && true 返回 true   2)true  && false 返回false
			||  or    1) true || false 返回 true  2) false || false 返回false
		 *
		 * 
		 */
		

		console.log(5 == 5);//true
		console.log(5 == '5');//true
		console.log(5 === 5);//true
		console.log(5 === '5');//false
		

		console.log(5 != 4);//true

		console.log(5 == 5 && 6 == 6);//true
		console.log(5 == 4 && 6 == 6);//false
		 
		
		console.log(5 == 5 || 6 == 5);  // true
		console.log(4 == 3 || 2 == 1);  // false
	</script>
</body>
</html>